<?php

namespace app\admin\validate;
use think\Validate;

class Pass extends Validate
{
    protected $rule = [
        'password'      		=> 'require',
        'new_password'      	=> 'require|min:6|max:100',
        'rep_password'      	=> 'require|confirm:new_password'
    ];

    protected $message = [
        'password.require'   	 => '旧密码不能为空',
        'new_password.require'   => '新密码不能为空',
        'new_password.min'       => '新密码不能小于6个字',
        'new_password.max'       => '新密码不能大于255个字',
        'rep_password.require'   => '确认密码不能为空',
        'rep_password.confirm'   => '新密码与确认密码不一致',
    ];
}
